#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

size_t Mystrlen(char str1[20])
{
	int i = 0;
	size_t count = 0;
	while (str1[i] != '\0')
	{
		count++;
		i++;
	}
	return count;
}

int main()
{
	char str[20] = { 0 };
	gets(str);
	size_t len = Mystrlen(str);
	printf("%zd", len);
	return 0;
}